package com.jiazhong.basic.shuxin.design.适配器模式;

// 充电头：将家用的220--->5
public class PowerAdapter implements PhoneCharge {

    private Phone phone;
    private Power power;

    public PowerAdapter(Phone phone, Power power) {
        this.phone = phone;
        this.power = power;
    }

    @Override
    public int output5v() {
        System.out.println("开始连接电源，电源的电压是220，开始转换");
        // 。。。。。。
        return 5;
    }
}
